<?php
/*
 * 根据不同的浏览器写不同的实现方法
 * @author  Mark
 * @package ixdcw
 * @file    shortcut.inc.php
 * @time    12-12-14 下午6:02
 */
defined('IN_IXDCW') or exit('Access Denied');
require DT_CORE.'/'.$module.'/common.inc.php';
if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false){
	// 不是IE
	$shortcut = "[DEFAULT]\r\n";
	$shortcut .= "BASEURL=".SITE_URL."\r\n";
	$shortcut .= "[InternetShortcut]\r\n";
	$shortcut .= "URL=".SITE_URL."\r\n";
	$shortcut .= "IDList=\r\n";
	$shortcut .= "IconFile=".SITE_URL."favicon.ico\r\n";
	$shortcut .= "HotKey=0\r\n";
	$shortcut .= "[{000214A0-0000-0000-C000-000000000046}]\r\n";
	$shortcut .= "Prop3=19,2\r\n";

} else {
	$shortcut = "[InternetShortcut]\r\n";
	$shortcut .= "URL=".SITE_URL."?from=desktop\r\n";
	$shortcut .= "IconFile=".SITE_URL."favicon.ico\r\n";
	$shortcut .= "IconIndex=1";
}
$file = File::vname($DT['sitename'].'.url');
$file = Str::convert($file, DT_CHARSET, 'GBK');
File::down('', $file, $shortcut);
?>